let input = `9
88 74 101 26 15 0 34 22 77`
let input_arr = input.split('\n')




// 

let num_arr = input_arr[1].split(' ')
let odd_count = 0
for(let i=0; i < num_arr.length;i++){
    if(num_arr[i] % 2 === 1){
        odd_count++;
    }
}

let even_count = num_arr.length - odd_count;
console.log(`${odd_count} ${even_count}`);